package com.wxlsoft.ui;

import javax.swing.JProgressBar;

public class ProgressController {

	public static void readProgress(JProgressBar progress) {
		int value = progress.getValue();
		if (value < 200) {
			progress.setValue(progress.getValue() + 1);
		}
	}
	
	public static void writeProgress(JProgressBar progress) {
		int value = progress.getValue();
		if (value < 490) {
			progress.setValue(progress.getValue() + 1);
		}
	}
	
}
